<template>
  <div>
    <h2>我是子组件</h2>

    <p>{{ atts }}</p>

    <input v-bind="$attrs"></input>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { useAttrs } from 'vue'

const atts = useAttrs()

let props = defineProps(['msg'])

console.log('atts', atts)

console.info(props.msg)
</script>
